#include "Ground.h"

Ground::Ground()
	:GameObject()
{
	init();
}

Ground::~Ground()
{

}

Ground::Ground(int id, float posX, float posY, int width, int height)
	:GameObject(id,posX, posY,width,height)
{
	setGameObID(BG_GROUND);
	init();
}

void Ground::init()
{
	m_sprite = ResourceManager::getInstance()->cS_ground;
}

void Ground::update(float time)
{
	setRectCollsion();
}

void Ground::setAnimation()
{
	
}

void Ground::setRectCollsion()
{
	setDeviation(0,0,6,-16);
}

void Ground::draw()
{
	/*m_sprite->update();
	D3DXVECTOR2 pos = m_camera->getPointTransform(m_posX, m_posY);
	m_sprite->draw(m_spriteHandler, pos.x, pos.y, false);*/
}

void Ground::destroy()
{

}